package com.itheima.crops.dao;

import com.itheima.crops.pojo.Index;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface IndexMapper extends Mapper<Index> {

    @Select("select did from t_device_index where iid = #{iid}")
    public List<Long> findDeviceIdsByIid(Long iid);
}
